﻿<?php
//require_once './class/class_onlinestore.php';
$storeID = "MEN";
$storeid = "WOMEN";
	$storeInfo = array();
	if(class_exists("OnlineStore")){
		if(isset($_SESSION['currentStore']))
			$Store = unserialize($_SESSION['currentStore']);
		else{
			$Store = new OnlineStore();
		}
		$Store->setStoreID($storeID);
		$Store->setStoreID($storeid);
		$storeInfo = $Store->getStoreInformation();
	}
	else{
		$ErrorMsg[] = "<p>The OnlineStore class in not available.</p>";
		$Store = NULL;
	}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title></title>
	</head>
	<body>
		<div class="container">
			<h1>TeesForAfrica T-Shirt Hub</h1>
			<h3><?php echo htmlentities($storeInfo['welcome']); ?></h3>
			<?php

				//$Store-> getAllProductListSlides();
				$Store->getAllProductList();
				//$_SESSION['currentStore'] = serialize($Store);
			?>
		</div>
	</body>
</html>